<link rel="stylesheet" type="text/css" href="./css/page/home.css">
<div class="row">
    <div class="ui inline home nag">
        <span class="title">上次登录:{{user.last_time}} - IP地址：{{user.last_ip}}</span> <i class="close icon"></i>
    </div>
</div>

<!--面板区域 is begining here-->
<div class="cont">
    <div class="ui three column grid" id="dashboard" style="margin: -14px 0;">
        <div class="row">
            <div class="top-table column">
                <div class="ui segments">
                    <div class="ui segment">
                        <h3 class="ui blue header">部门业绩</h3>
                    </div>
                    <div class="ui segment">
                        <table class="ui very basic table">
                            <tbody>
                                <tr ng-repeat="vdataT in dataT">
                                    <td>{{$index + 1}}</td>
                                    <td>{{vdataT.name}}</td>
                                    <td>{{vdataT.mount}}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="top-table column">
                <div class="ui segments">
                    <div class="ui segment">
                        <h3 class="ui blue header">团队业绩</h3>
                    </div>
                    <div class="ui segment">
                        <table class="ui very basic table">
                            <tbody>
                                <tr ng-repeat="vdataX in dataX">
                                    <td>{{$index + 1}}</td>
                                    <td>{{vdataX.name}}</td>
                                    <td>{{vdataX.mount}}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

            <div class="doughnut-chart column">
                <div class="ui segments">
                    <div class="ui segment">
                        <h3 class="ui blue header">时长统计</h3>
                    </div>
                    <div class="ui segment">
                        <table class="ui very basic table">
                            <tbody>
                                <tr ng-repeat="vdataC in dataC">
                                    <td>{{$index + 1}}</td>
                                    <td>{{vdataC.name}}</td>
                                    <td>{{(vdataC.calls/3600).toFixed(2)}}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="ui three column row">
            <div class="dashboard-stat column">
                <div class="ui segments">
                    <div class="ui segment">
                        <h3 class="ui blue header">新单业绩</h3>
                    </div>
                    <div class="ui violet inverted dashboard center aligned segment">
                        <div class="ui dashboard statistic">
                            <div class="value">{{dataXD.mount}}</div>
                        </div>
                    </div>
                    <div class="ui segment">单位：元</div>
                </div>
            </div>

            <div class="dashboard-stat column">
                <div class="ui segments">
                    <div class="ui segment">
                        <h3 class="ui blue header">续费业绩</h3>
                    </div>
                    <div class="ui grey inverted dashboard center aligned segment">
                        <div class="ui dashboard statistic">
                            <div class="value">{{dataXF.mount}}</div>
                        </div>
                    </div>
                    <div class="ui segment">单位：元</div>
                </div>
            </div>

            <div class="dashboard-stat column">
                <div class="ui segments">
                    <div class="ui segment">
                        <h3 class="ui blue header">客户统计</h3>
                    </div>
                    <div class="ui pink inverted dashboard center aligned segment">
                        <div class="ui dashboard statistic">
                            <div class="value">{{dataK}}</div>
                        </div>
                    </div>
                    <div class="ui segment">单位：个</div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--面板区域 is ending here-->

<!-- 系统信息弹出层 is ending here-->
<div class="ui systemerror modal transition">
    <div class="header">系统提示</div>
    <div class="content">
        <div class="inline fluid fields">
            <div class="field" style="display: inline-block;width: 5%;" ng-show="dashRcode==1"> <i class="thumbs up large icon"></i>
            </div>
            <div class="field" style="display: inline-block;width: 5%;" ng-show="dashRcode==0">
                <i class="thumbs down large icon"></i>
            </div>
            <div class="field" style="display: inline-block;">
                <p>{{dashMsg}}</p>
            </div>
        </div>
    </div>
    <div class="actions">
        <div class="ui positive button">关闭</div>
    </div>
</div>
<!-- 系统信息弹出层 is ending here-->
<script type="text/javascript">
    $(function() {
        $('.close.icon').click(function(e) {
            $(this).parent().hide();
        });
    });
</script>